<template>
  <el-tabs v-model="activeName" class="demo-tabs" @tab-click="onTabClick">
    <el-tab-pane label="项目统计" name="project">
      <projectStatistic />
    </el-tab-pane>
    <el-tab-pane label="人员统计" name="personnel">
      <personnelStatistic />
    </el-tab-pane>
  </el-tabs>
</template>

<script setup lang="ts">
import { ref } from "vue";
import personnelStatistic from "./personnelStatistic.vue";
import projectStatistic from "./projectStatistic.vue";

const activeName = ref("project");
const onTabClick = (val: string) => {
  console.log(val);
};
</script>
